package com.yx.pc.api.service.impl;

import com.yx.pc.api.service.PcTdWalletPayLogService;
import com.yx.system.dao.TdWalletPayLogMapper;
import com.yx.system.entity.TdWalletPayLog;
import com.yx.system.service.TdWalletPayLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class PcTdWalletPayLogServiceImpl implements PcTdWalletPayLogService {

    @Autowired
    private TdWalletPayLogMapper tdWalletPayLogMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tdWalletPayLogMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TdWalletPayLog record) {
        return tdWalletPayLogMapper.insert(record);
    }

    @Override
    public int insertSelective(TdWalletPayLog record) {
        return tdWalletPayLogMapper.insertSelective(record);
    }

    @Override
    public TdWalletPayLog selectByPrimaryKey(Integer id) {
        return tdWalletPayLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TdWalletPayLog record) {
        return tdWalletPayLogMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TdWalletPayLog record) {
        return tdWalletPayLogMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<TdWalletPayLog> queryList(Map<String, Object> map) {
        return tdWalletPayLogMapper.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return tdWalletPayLogMapper.queryTotal(map);
    }

    @Override
    public TdWalletPayLog queryByBillNo(String billNo) {
        return tdWalletPayLogMapper.queryByBillNo(billNo);
    }
}
